<template>
	<v-upload-file-button
		button-text="点击上传"
		accept="image/*, .pdf"
		:upload-url="'https://api.example.com/upload'"
		:toKen="yourToken"
		@success="handleSuccess"
		@error="handleError"
	>
		<template #default>
			<div class="custom-upload-button">
				
				<span class="custom-text">自定义上传按钮</span>
			</div>
		</template>
	</v-upload-file-button>
</template>

<script setup>
const yourToken = 'your_auth_token_here';

const handleSuccess = (response) => {
	console.log('上传成功:', response);
};

const handleError = (error) => {
	console.error('上传失败:', error);
};
</script>
<style></style>
